<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title><?php echo $OJ_NAME?></title>  
    <?php include("template/$OJ_TEMPLATE/css.php");?>	    


    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <div class="container">
        <?php include("template/$OJ_TEMPLATE/nav.php");?>
        <!-- Main component for a primary marketing message or call to action -->
        <div class="jumbotron">
            <div class="col-lg-12 col-xs-12">
                <div class="col-lg-offset-4 col-xs-12">Scratch、C/C++、信息学竞赛(NOIP)，欢迎加群(531912864)交流。</div>
            </div>
            <div class="col-lg-10 col-lg-offset-1 col-xs-12">
                <div id=submission style="min-height:300px" ></div>
            </div>
            <div class="col-lg-12 col-xs-12">
                <a target="_blank" href="<?php echo SysConfig::$WECHAT_URL;?>">
                    <img class="col-lg-offset-1 col-lg-3 col-xs-12" src="/upload/weixin.gif">
                </a>
                <div class="col-lg-4 col-xs-12">
                    <div style="padding-top:0.8rem; color:blue;">
                    欢迎关注我们的微信公众号，为了您更好的了解编程，
                    我们会在工作之余录制简单的微课和发布相关信息。
                    </div>
                </div>
            </div>
        </div>
	    <?php //echo $view_news?>
    </div> <!-- /container -->

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <?php include("template/$OJ_TEMPLATE/js.php");?>
    <script language="javascript" type="text/javascript" src="include/jquery.flot.js"></script>
    <script type="text/javascript">
        $(function () {
            var d1 = <?php echo json_encode($chart_data_all)?>;
            var d2 = <?php echo json_encode($chart_data_ac)?>;
            $.plot($("#submission"), [
                {label:"<?php echo $MSG_SUBMIT?>",data:d1,lines: { show: true }},
                {label:"<?php echo $MSG_AC?>",data:d2,lines:{show:true}} ],
                {
                    grid: {
                        backgroundColor: { colors: ["#fff", "#eee"] }
                    },
                    xaxis: {
                        mode: "time",
                        timeformat: "%y-%m-%d",
                    }
                });
        });
</script>
  </body>
</html>
